How to run the scripts :

Pre-Requisite : 

You will need python-3.6 with requests and yaml package installed. The scripts can also be run from SBCE using
	"/usr/local/ipcs/peon/venv/bin/python3.6 httpCallConfig.py/webrtcConfig.py/sip_guest_user.py"

Updating .dat files:

1. All the configurations have their respective dat files. So for example, if you have to configure webrtc call flow, add data in webrtcConfig.dat.
2. The valid values for the data can be seen in swagger.
3. If multiple configurations are needed, copy the complete chunk from the API name to the end. For example, if you want to add new certificate, add the following and add the data.
	#API Certificates
	#Data to add CA Certificate 
	certificateType: ca
	certificatePayload: 
	allowWeakPayload: 
	existingPrivateKey:
	privateKeyPayload:
	trustChainPayload:
4. The data is in yaml format, so follow the specs.
	a. Do not use tabs, only spaces are allowed.
	b. Give a space after hyphen(-), commas(,) and node names. Examples :
		tlsProtocol:
		- TLS_1_1
		- TLS_1_0
		- TLS_1_2
		networkAddresses:
		 - ipAddress: 192.168.8.148
		   publicIp: 192.168.8.148
		   gatewayOverride: ''
		 - ipAddress: 192.168.8.147
		   publicIp: 192.168.8.147
		   gatewayOverride: ''
		   
USAGE:

python httpCallConfig.py/webrtcConfig.py/sip_guest_user.py {POST}/{DELETE} [--apiname NETWORK_MANAGEMENT,CERTIFICATES,TLS_CLIENT_PROFILES,TLS_SERVER_PROFILES,REVERSE_PROXY_PROFILES,REVERSE_PROXY_RELAYS,TURN_STUN_PROFILES,TURN_STUN_RELAYS,LOAD_MONITOR] [--id id] [--certificate_type CERTIFICATE_TYPE] [--certificate_name CERTIFICATE_NAME]

Help: httpCallConfig.py [-h] || webrtcConfig.py [-h] || sip_guest_user.py [-h]


